package com.jmebananas.input;

import com.jme.input.InputHandler;
import com.jme.input.RelativeMouse;
import com.jme.renderer.Camera;
import com.jmebananas.input.action.MousePanAction;

/**
 * MousePanHandler
 * 
 * @author Glenn Powell
 * 
 */
public class MousePanHandler extends InputHandler {

	private MousePanAction action;


	public MousePanHandler(Camera cam, float speed, int grabButton) {
		RelativeMouse mouse = new RelativeMouse("Mouse Input");
		mouse.registerWithInputHandler(this);

		action = new MousePanAction(mouse, cam, speed, grabButton);
		addAction(action);
	}

	public MousePanAction getAction() {
		return action;
	}

}
